#!/usr/bin/env python3
"""
Easy RWKV - A simple and convenient wrapper for RWKV language models
"""

from setuptools import setup, find_packages
import os

# Read the README file
def read_readme():
    readme_path = os.path.join(os.path.dirname(__file__), "README.md")
    if os.path.exists(readme_path):
        with open(readme_path, "r", encoding="utf-8") as f:
            return f.read()
    return ""

setup(
    name="easy-rwkv",
    version="0.1.0",
    description="A simple and convenient wrapper for RWKV language models",
    long_description=read_readme(),
    long_description_content_type="text/markdown",
    author="tangyubin",
    author_email="",
    url="https://github.com/BlinkDL/RWKV-LM",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    python_requires=">=3.8",
    install_requires=[
        "torch>=1.13.0",
        "numpy>=1.21.0",
        "prompt-toolkit>=3.0.0",
        "rwkv>=0.8.0",
        "pyyaml>=6.0",
        "colorama>=0.4.4",
        "click>=8.0.0",
    ],
    extras_require={
        "dev": [
            "pytest>=6.0",
            "black>=22.0",
            "flake8>=4.0",
            "mypy>=0.910",
        ],
    },
    entry_points={
        "console_scripts": [
            "easy-rwkv=easy_rwkv.cli:main",
            "erwkv=easy_rwkv.cli:main",
        ],
    },
    keywords="rwkv, language model, ai, chatbot, transformer",
    project_urls={
        "Bug Reports": "https://github.com/BlinkDL/RWKV-LM/issues",
        "Source": "https://github.com/BlinkDL/RWKV-LM",
        "Documentation": "https://github.com/BlinkDL/RWKV-LM",
    },
)
